package git.soulbgm.tcp.server.common.pojo;

import io.netty.channel.Channel;

import java.util.concurrent.ConcurrentHashMap;

public class TcpConnectMap {

    private final static ConcurrentHashMap<String, Channel> CONNECT_MAP = new ConcurrentHashMap<String, Channel>();

    public static ConcurrentHashMap<String, Channel> getConnectMap() {
        return CONNECT_MAP;
    }

    public static void put(String key, Channel channel) {
        CONNECT_MAP.put(key, channel);
    }

    public static Channel get(String key) {
        return CONNECT_MAP.get(key);
    }

    public static void remove(String key) {
        CONNECT_MAP.remove(key);
    }


}
